Type Definitions
The following type definitions are available globally.
-
Provides both the old and new versions of an object in this Realm. Object properties can only be accessed using keyed subscripting.
Declaration
Objective‑C
typedef void (^RLMObjectMigrationBlock)(RLMObject *_Nullable, RLMObject *_Nullable)Swift
typealias RLMObjectMigrationBlock = (RLMObject?, RLMObject?) -> VoidParameters
oldObjectObject in original RLMRealm (read-only).
newObjectObject in migrated RLMRealm (read-write).
-
Block to run when the data in a Realm was modified.
Declaration
Objective‑C
typedef void (^RLMNotificationBlock)(NSString *_Nonnull, RLMRealm *_Nonnull)Swift
typealias RLMNotificationBlock = (String, RLMRealm) -> Void -
Migration block used to migrate a Realm.
Declaration
Objective‑C
typedef void (^RLMMigrationBlock)(RLMMigration *_Nonnull, uint64_t)Swift
typealias RLMMigrationBlock = (RLMMigration, UInt64) -> VoidParameters
migrationRLMMigrationobject used to perform the migration. The migration object allows you to enumerate and alter any existing objects which require migration.oldSchemaVersionThe schema version of the
RLMRealmbeing migrated.
View on GitHub
Install in Dash
Type Definitions Reference